#ifndef GLSLSYNTAXHIGHLIGHTER_H
#define GLSLSYNTAXHIGHLIGHTER_H


#include <QList>
#include <QSyntaxHighlighter>
#include <QTextDocument>

class GLSLSyntaxHighlighter  : public QSyntaxHighlighter
{
  Q_OBJECT
private:
  QList<QString>  _keywords;
  QList<QString>  _variables;

  QTextCharFormat _keywordFormat;
  QTextCharFormat _variableFormat;
	QTextCharFormat _commentFormat;
  QTextCharFormat _versionFormat;
public:
  GLSLSyntaxHighlighter(QTextDocument* document);

  virtual void highlightBlock (const QString & text);
};
#endif // GLSLSYNTAXHIGHLIGHTER_H
